package com.vincent.transmitdemo;

import com.alibaba.ttl.TransmittableThreadLocal;

public class ContextHolder {
    private static TransmittableThreadLocal<Object> threadLocal = new MyTransmit();

    public static TransmittableThreadLocal<Object> getThreadLocal() {
        return threadLocal;
    }
    public static Object get(){
        return threadLocal.get();
    }

    public static void set(Object value){
        threadLocal.set(value);
    }
}
